package com.tanhua.model.vo;

import com.tanhua.model.domain.UserInfo;
import com.tanhua.model.mongo.RecommendUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * @author pc
 * @date 2021/11/29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SimilarYouVo implements Serializable {
    private Integer id;
    private String avatar;
    public static SimilarYouVo init(UserInfo userInfo) {
        SimilarYouVo vo = new SimilarYouVo();
        vo.setAvatar(userInfo.getAvatar());
        vo.setId(Integer.valueOf(userInfo.getId().toString()));
        return vo;
    }
}
